package com.liaowei.post.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liaowei.model.domain.SpecialColumn;
import com.liaowei.model.vo.SpecialColumnVO;
import com.liaowei.post.model.param.SaveSpecialColumnParam;
import com.liaowei.post.model.param.SpecialColumnManagePageParam;
import com.liaowei.post.model.param.SpecialColumnStatusParam;

import java.util.List;

/**
* @author LindaMan
* @description 针对表【wy_special_column(专栏表)】的数据库操作Service
* @createDate 2023-05-11 08:31:59
*/
public interface SpecialColumnService extends IService<SpecialColumn> {

    // 新增专栏信息
    String addSpecialColumn(SaveSpecialColumnParam specialColumnParam);

    // 修改专栏状态
    String updateSpecialColumnStatus(SpecialColumnStatusParam statusParam);

    // 分页查询专栏
    IPage<SpecialColumnVO> searchColumnPage(int pageNum, int pageSize);

    // 后台-分页查询专栏
    IPage<SpecialColumnVO> searchColumnManagePage(SpecialColumnManagePageParam pageParam);

    // 根据id查询SpecialColumnVO
    SpecialColumnVO searchColumnVOById(Long id);

    // 查询最近访问的帖子所属的专栏
    List<SpecialColumn> searchColumnListByUserId(Long userId);

    // 查询热门专栏
    List<SpecialColumnVO> searchHotColumnVOList();

    // 查询全部的专栏
    List<SpecialColumn> searchSpecialColumnList();
}
